
package com.scs.application.modules.upms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.service.ITreeService;
import com.scs.application.modules.upms.vo.OfficeVO;
import com.scs.application.modules.upms.entity.Office;
import com.scs.application.modules.upms.request.OfficeQueryRequest;

import java.util.List;

/**
* 机构 service 接口
*/
public interface OfficeService extends ITreeService<Office> {

    List<Office> list(OfficeQueryRequest request);

    IPage<OfficeVO> page(OfficeQueryRequest request);


    /**
     * 添加供应商机构
     * @param vo
     * @return
     */
    Office addForSupplier(OfficeVO vo);

    /**
     * 添加医疗结构
     * @param vo
     * @return
     */
    Office addForHospital(OfficeVO vo);

    /**
     * 机构的父级Ids(不包括0和一级机构【供应商机构、医院机构】)
     * @param officeId
     * @return
     */
    List<String> getOfficeParents(String officeId,boolean includeSelf);

}
